package nodes;

import nodes.Node;
import nodes.Type;
import visitors.Visitor;

public final class FieldNode extends Node
{
    public String id;
    public Type type;
    public FieldNode next;

    public FieldNode(String id, Type type)
    {
        this.id = id;
        this.type = type;
        this.next = null;
    }

    @Override
    public Object accept(Visitor v)
    {
        return v.visit(this);
    }
}